package com.ujoku.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.labillusion.core.util.jsonFormat.SimpleDoubleSerializer;

import java.util.Date;

/**
 * Created by Greg.Chen on 2015/1/19.
 */
public class CartItem {

    private String id;
    private String cartId;
    private int goodsId;
    private String goodsName;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double price;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double goodsPrice;
    private Integer qty;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double subTotal;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double total;
    private String myListItemId;
    private Integer status;
    private Boolean IsFav;

    @JsonIgnore
    private Date goodsUpdateTime;

    public Date getGoodsUpdateTime() {
        return goodsUpdateTime;
    }

    public void setGoodsUpdateTime(Date goodsUpdateTime) {
        this.goodsUpdateTime = goodsUpdateTime;
    }

    public Boolean getIsFav() {
        return IsFav;
    }

    public void setIsFav(Boolean isFav) {
        IsFav = isFav;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMyListItemId() {
        return myListItemId;
    }

    public void setMyListItemId(String myListItemId) {
        this.myListItemId = myListItemId;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    private String smallImage;

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getSmallImage() {
        return smallImage;
    }

    public void setSmallImage(String smallImage) {
        this.smallImage = smallImage;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCartId() {
        return cartId;
    }

    public void setCartId(String cartId) {
        this.cartId = cartId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }

    public Double getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(Double subTotal) {
        this.subTotal = subTotal;
    }
}

